首页> 外文OA文献 >Understanding and addressing exhibitionism in Java empirical research about method accessibility
【2h】

Understanding and addressing exhibitionism in Java empirical research about method accessibility

机译:理解和解决Java中关于方法可访问性的实证研究中的表现主义

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Information hiding is a positive consequence of properly defining component interfaces. Unfortunately, determining what should constitute a public interface remains difficult. We have analyzed over 3.6 million lines of Java open-source code and found that on the average, at least 20 % of defined methods are over-exposed, thus threatening public interfaces to unnecessary exposure. Such over-exposed methods may have their accessibility reduced to exactly reflect the method usage. We have identified three patterns in the source code to identify over-exposed methods. We also propose an Eclipse plugin to guide practitioners in identifying over-exposed methods and refactoring their applications. Our plugin has been successfully used to refactor a non-trivial application.
机译:信息隐藏是正确定义组件接口的积极结果。不幸的是,确定应该构成公共接口的内容仍然很困难。我们分析了超过360万行Java开源代码,发现平均而言,至少20%的定义方法被过度曝光,从而威胁到公共接口不必要的暴露。此类曝光过度的方法可能会降低其可访问性,以准确反映该方法的使用。我们已经在源代码中确定了三种模式来标识过度曝光的方法。我们还建议使用Eclipse插件来指导从业人员识别过度暴露的方法并重构其应用程序。我们的插件已成功用于重构非平凡的应用程序。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号